// 事项-我的申请-所有申请tab查询参数
const initQueryParamsAll = {
  instanceName: undefined,
  businessCode: undefined,
  endTimeBefore: undefined,
  endTimeAfter: undefined,
  createTimeAfter: undefined,
  createTimeBefore: undefined
}
// 事项-我的申请-草稿tab查询参数
const initQueryParamsDraft = {
  instanceName: undefined,
  businessCode: undefined,
  createTimeBefore: undefined,
  createTimeAfter: undefined
}
// 事项-我的申请-处理中tab查询参数
const initQueryParamsDealing = {
  instanceName: undefined,
  businessCode: undefined,
  createTimeBefore: undefined,
  createTimeAfter: undefined
}
// 事项-我的申请-已通过tab查询参数
const initQueryParamsPassed = {
  instanceName: undefined,
  businessCode: undefined,
  endTimeBefore: undefined,
  endTimeAfter: undefined,
  createTimeAfter: undefined,
  createTimeBefore: undefined
}
// 事项-我的申请-已驳回tab查询参数
const initQueryParamsRejected = {
  instanceName: undefined,
  businessCode: undefined,
  endTimeBefore: undefined,
  endTimeAfter: undefined,
  createTimeAfter: undefined,
  createTimeBefore: undefined
}
// 事项-我的申请-已废止tab查询参数
const initQueryParamsAbolished = {
  instanceName: undefined,
  businessCode: undefined,
  endTimeBefore: undefined,
  endTimeAfter: undefined,
  createTimeAfter: undefined,
  createTimeBefore: undefined
}
// 事项-我的申请-表单异常tab查询参数
const initQueryParamsException = {
  instanceName: undefined,
  businessCode: undefined,
  endTimeBefore: undefined,
  endTimeAfter: undefined,
  createTimeAfter: undefined,
  createTimeBefore: undefined
}
// 事项-我的申请-已撤回tab查询参数
const initQueryParamsCanceled = {
  instanceName: undefined,
  businessCode: undefined,
  endTimeBefore: undefined,
  endTimeAfter: undefined,
  createTimeAfter: undefined,
  createTimeBefore: undefined
}
const state = {
  queryParamsAll: {
    ...initQueryParamsAll
  },
  queryParamsDraft: {
    ...initQueryParamsDraft
  },
  queryParamsDealing: {
    ...initQueryParamsDealing
  },
  queryParamsPassed: {
    ...initQueryParamsPassed
  },
  queryParamsRejected: {
    ...initQueryParamsRejected
  },
  queryParamsAbolished: {
    ...initQueryParamsAbolished
  },
  queryParamsException: {
    ...initQueryParamsException
  },
  queryParamsCanceled: {
    ...initQueryParamsCanceled
  }

}
// 重置清空各tab的搜索条件查询参数
const mutations = {
  resetAllApplyQueryParams (state) {
    // eslint-disable-next-line no-param-reassign
    state.queryParamsAll = {
      ...initQueryParamsAll
    }
  },
  resetDraftQueryParams (state) {
    // eslint-disable-next-line no-param-reassign
    state.queryParamsDraft = {
      ...initQueryParamsDraft
    }
  },
  resetDealingQueryParams (state) {
    // eslint-disable-next-line no-param-reassign
    state.queryParamsDealing = {
      ...initQueryParamsDealing
    }
  },
  resetPassedQueryParams (state) {
    // eslint-disable-next-line no-param-reassign
    state.queryParamsPassed = {
      ...initQueryParamsPassed
    }
  },
  resetRejectedQueryParams (state) {
    // eslint-disable-next-line no-param-reassign
    state.queryParamsRejected = {
      ...initQueryParamsRejected
    }
  },
  resetAbolishedQueryParams (state) {
    // eslint-disable-next-line no-param-reassign
    state.queryParamsAbolished = {
      ...initQueryParamsAbolished
    }
  },
  resetExceptionQueryParams (state) {
    // eslint-disable-next-line no-param-reassign
    state.queryParamsException = {
      ...initQueryParamsException
    }
  },
  resetCanceledQueryParams (state) {
    // eslint-disable-next-line no-param-reassign
    state.queryParamsCanceled = {
      ...initQueryParamsCanceled
    }
  }
}
const actions = {
}

export default {
  state,
  mutations,
  actions
}
